// const KeyAnimation = require('./module/KeyAnimation');
// const Config = require('./Config');
// const TD = require('./module/TD');

// 引入各页的交互操作
import './plugList';
const TabFn = require('./TabFn');
const Main03CardFn = require('./main03');
// 加载页对象
const IndexViewController = function () {
    // 公共变量
    const _that = this;
    const _private = {};
    _private.mMain = $('.m-main');
    _private.mainWrap = _private.mMain.find('.main-wrap');
    _private.slide2D = $('.slide2d');
    _private.moveSlide = $('.move-swiper');
    _private.moveWrap = $('.move-wrap');
    _private.bigSmallSlide = $('.big-small-slide');
    _private.slide03 = _private.mainWrap.find('.page03');
    _private.slide03BtnWrap = _private.slide03.find('.big');
    // _private.slide2DBig = _private.slide2D.find('.big');
    // _private.slide2DsmallL = _private.slide2D.find('.small-left');
    // _private.slide2DsmallR = _private.slide2D.find('.small-right');
    // _private.slide2DBtnL = _private.slide2D.find('.btn-left');
    // _private.slide2DBtnR = _private.slide2D.find('.btn-right');
    // let bigLeft = 0;
    // 其余屏使用的导航
    _private.sNav = _private.mainWrap.find('.nav02');
    // 初始化，包括整体页面
    _private.init = function () {
        if (_private.isInit === true) {
            return;
        }
        let _count = true;
        _private.navEl = $('.m-nav');
        // _private.navEl.on('mouseenter', function () {
        //     _private.navEl.addClass('open');
        // });
        // _private.navEl.on('mouseleave', function () {
        //     _private.navEl.removeClass('open');
        // });
        // 腾讯视频使用
        let VideoFn = function () {
            let floatVideo = $('.m-float-video');
            let btnClose = floatVideo.find('.btn-close');
            let video = new tvp.VideoInfo();
            let player;
            btnClose.on('click', function () {
                player.pause();
                floatVideo.hide();
                // stage.ableScroll();
            });

            this.show = function (vid) {
                // stage.disableScroll();
                floatVideo.show();
                video.setVid(vid);
                player = new tvp.Player();
                player.create({
                    width: '100%',
                    height: '100%',
                    video: video,
                    modId: 'mod_player',
                    autoplay: true
                    // mod_player是刚刚在页面添加的div容器 autoplay:true
                });
            };
        };
        let videoPlay = new VideoFn();
        // 给按钮进行传参vid值
        $('.video-control').on('click', function () {
            if (_count) {
                _count = false;
                console.log($(this));
                let vid = $(this).data('vid');
                console.log($(this).data('vid'));
                videoPlay.show(vid);
                _count = true;
            }
        });
        // 页面3平滑轮播控制
        _private.slide2DBaseFn = function (position, domEl, other) {
            console.log(domEl);
            let num = null;
            let index = null;
            if (position === 'left') {
                num = 1;
            } else if (position === 'right') {
                num = -1;
            }
            domEl.leftNum = domEl.css('left');
            let width = domEl.width();
            let childWidth = domEl.find('.card').eq(0).width();
            let childLength = domEl.find('.card').length;
            let left = (parseInt(domEl.leftNum) - childWidth * num) + 'px';
            domEl.animate({
                left: left
            }, function () {
                if (num > 0) {
                    if (parseInt(domEl.leftNum) < -(width - childWidth * 1.5)) {
                        left = -(childWidth) + 'px';
                        domEl.css({
                            left: left
                        });
                        domEl.leftNum = left;
                    }
                } else {
                    if (parseInt(domEl.leftNum) > -(childWidth * 0.5)) {
                        left = -(childWidth * (childLength - 2)) + 'px';
                        domEl.css({
                            left: left
                        });
                        domEl.leftNum = left;
                    }
                }
            });
            domEl.leftNum = left;
            if (domEl.is('.big')) {
                console.log(domEl);
                let num = parseInt(domEl.leftNum) / childWidth;
                let Movelength = childLength - 2;
                if (num < -Movelength) {
                    num = -1;
                } else if (num > -1) {
                    num = -Movelength;
                }
                index = Math.round(Math.abs(num)) - 1;
                if (other.ballList.length >= 1) {
                    // console.log(other.ballList);
                    // console.log(index);
                    other.ballList.find('.ball').eq(index).addClass('active').siblings().removeClass('active');
                }
                if (other.textList.length >= 1) {
                    other.textList.find('.text').eq(index).addClass('active').siblings().removeClass('active');
                };
            };
        };
        _private.createDomel = function (position, name) {
            let domWrap = $(`.${name}`);
            let slide2DBig = domWrap.find('.big');
            let slide2DsmallL = domWrap.find('.small-left');
            let slide2DsmallR = domWrap.find('.small-right');
            let other = {};
            other.ballList = domWrap.find('.ball-list');
            other.textList = domWrap.find('.text-list');
            _private.slide2DBaseFn(position, slide2DsmallL);
            _private.slide2DBaseFn(position, slide2DsmallR);
            _private.slide2DBaseFn(position, slide2DBig, other);
        };
        _private.slide2D.on('click', '.btn-left', function () {
            let name = $(this).data('name');
            _private.createDomel('right', name);
        });
        _private.slide2D.on('click', '.btn-right', function () {
            let name = $(this).data('name');
            _private.createDomel('left', name);
        });
        $('.btn-left').on('click', function () {});
        // _private.moveWrap.on('click', '.btn-right', function () {
        //     let name = $(this).data('name');
        //     let bsLeft = _private.bigSmallSlide.scrollLeft();
        //     let childWidth = $(`.${name}`).find('.move-slide').eq(0).innerWidth();
        //     console.log(childWidth);
        //     let endLeft = bsLeft + childWidth;
        //     console.log(endLeft);
        //     _private.bigSmallSlide.animate({
        //         scrollLeft: endLeft
        //     }, 500);
        // });
        const MoveSwiper = function (option) {
            let obj = option;
            let wrapEl = $(obj.el);
            let bigSmallSlide = wrapEl.find('.big-small-slide');
            let addNum = option.addNum || 1;
            // console.log(addNum, 'cdb');
            let ballList = wrapEl.find('.ball');
            let ballLength = ballList.length;
            let textList = wrapEl.find('.text-about');
            let btnClick = true;
            let index = obj.firstslide + addNum + 1;
            // console.log(index);
            // console.log(index, 'cdb-indx');
            let initLeftNum = index - addNum;
            let startNum = addNum + 1;
            let endNum = wrapEl.find('.move-slide').length - addNum - 1;
            let maxEqNum = wrapEl.find('.move-slide').length - addNum - 2;
            let maxLeftNum = wrapEl.find('.move-slide').length - 1 - 2 * addNum - 1;
            let childWidth = wrapEl.find('.move-slide').eq(0).width();
            let childHeight = wrapEl.find('.move-slide').eq(0).height();
            let reducedWidth = wrapEl.find('.move-slide').eq(0).width() * obj.reducedSize;
            let reducedHeight = wrapEl.find('.move-slide').eq(0).height() * obj.reducedSize;
            wrapEl.find('.move-slide').css({
                width: reducedWidth,
                height: reducedHeight
            }).removeClass('current');
            wrapEl.find('.move-slide').eq(index).css({
                width: childWidth,
                height: childHeight
            }).addClass('active');
            setTimeout(function () {
                let width = wrapEl.find('.move-slide').eq(0).innerWidth();
                // console.log(initLeftNum * width);
                bigSmallSlide.scrollLeft(initLeftNum * width);
                // console.log(bigSmallSlide, initLeftNum * width);
            }, 0);
            // wrapEl.on('click', '.btn-right', function () {
            //     let name = $(this).data('name');
            //     let nextIndex = parseInt(index) + 1;
            //     let bsLeft = bigSmallSlide.scrollLeft();
            //     let width = $(`.${name}`).find('.move-slide').eq(0).innerWidth();
            //     let endLeft = bsLeft + width;
            //     console.log(index);
            //     let ballNum = nextIndex - 2;
            //     navTabFn(ballNum);
            //     bigSmallSlide.animate({
            //         scrollLeft: endLeft
            //     }, 300, function () {
            //         index = nextIndex;
            //         console.log(index, 'cdb');
            //         if (index >= endNum) {
            //             console.log('右超出了');
            //             bigSmallSlide.scrollLeft(width);
            //             wrapEl.find('.move-slide').eq(startNum).css({
            //                 width: childWidth,
            //                 height: childHeight
            //             });
            //             setTimeout(function () {
            //                 wrapEl.find('.move-slide').eq(index).css({
            //                     width: reducedWidth,
            //                     height: reducedHeight
            //                 });
            //                 index = startNum;
            //             }, 0);
            //         }
            //     });
            //     wrapEl.find('.move-slide').eq(index).animate({
            //         width: reducedWidth,
            //         height: reducedHeight
            //     }, 200);
            //     wrapEl.find('.move-slide').eq(nextIndex).animate({
            //         width: childWidth,
            //         height: childHeight
            //     }, 200, function () {
            //     });
            // });
            let btnLeftfn = function () {
                if (btnClick) {
                    btnClick = false;
                    let name = $(this).data('name');
                    let prevIndex = parseInt(index) - 1;
                    let bsLeft = bigSmallSlide.scrollLeft();
                    let width = $(`.${name}`).find('.move-slide').eq(0).innerWidth();
                    let endLeft = bsLeft - width;
                    if (prevIndex < startNum) {
                        console.log(wrapEl.find('.move-slide').eq(endNum), endNum);
                        wrapEl.find('.move-slide').eq(endNum).css({
                            width: childWidth,
                            height: childHeight
                        }).addClass('active');
                        setTimeout(function () {
                            bigSmallSlide.scrollLeft(width * (maxLeftNum + 1));
                            wrapEl.find('.move-slide').eq(index).css({
                                width: reducedWidth,
                                height: reducedHeight
                            });
                            index = maxEqNum;
                            let ballNum = index - (addNum + 1);
                            scrollNavFn(ballNum);
                            // leftRightFn(index)
                            // if (index <= 2) {
                            //     // console.log('触发！！');
                            //     wrapEl.find('.move-slide').eq(maxEqNum).addClass('active');
                            // };
                            let bsLeft = bigSmallSlide.scrollLeft();
                            let endLeft = bsLeft - width;
                            bigSmallSlide.animate({
                                scrollLeft: endLeft
                            }, 300, function () {
                                // console.log(index);
                                btnClick = true;
                            });
                            wrapEl.find('.move-slide').eq(index).animate({
                                width: childWidth,
                                height: childHeight
                            }, 200).addClass('active').siblings().removeClass('active');
                            wrapEl.find('.move-slide').eq(endNum).animate({
                                width: reducedWidth,
                                height: reducedHeight
                            }, 200);
                        }, 0);
                    } else {
                        // console.log('leftelse');
                        let ballNum = prevIndex - (addNum + 1);
                        scrollNavFn(ballNum);
                        bigSmallSlide.animate({
                            scrollLeft: endLeft
                        }, 300, function () {
                            index = prevIndex;
                            // console.log(index, 'cdb');
                            btnClick = true;
                        });
                        wrapEl.find('.move-slide').eq(index).animate({
                            width: reducedWidth,
                            height: reducedHeight
                        }, 200);
                        wrapEl.find('.move-slide').eq(prevIndex).animate({
                            width: childWidth,
                            height: childHeight
                        }, 200).addClass('active').siblings().removeClass('active');
                        // wrapEl.find('.move-slide').eq(prevIndex).addClass('active').siblings().removeClass('active');
                    }
                    // if (prevIndex <= startNum - addNum) {
                    //     console.log('触发！！');
                    //     wrapEl.find('.move-slide').eq(maxEqNum).addClass('active');
                    // };
                }
            };
            let btnRightfn = function () {
                if (btnClick) {
                    btnClick = false;
                    let name = $(this).data('name');
                    let nextIndex = parseInt(index) + 1;
                    let bsLeft = bigSmallSlide.scrollLeft();
                    let width = $(`.${name}`).find('.move-slide').eq(0).innerWidth();
                    let endLeft = bsLeft + width;
                    if (nextIndex > maxEqNum) {
                        wrapEl.find('.move-slide').eq(startNum - 1).css({
                            width: childWidth,
                            height: childHeight
                        }).addClass('active');
                        setTimeout(function () {
                            bigSmallSlide.scrollLeft(0);
                            wrapEl.find('.move-slide').eq(index).css({
                                width: reducedWidth,
                                height: reducedHeight
                            });
                            index = startNum;
                            let ballNum = index - (addNum + 1);
                            scrollNavFn(ballNum);
                            let bsLeft = bigSmallSlide.scrollLeft();
                            let endLeft = bsLeft + width;
                            bigSmallSlide.animate({
                                scrollLeft: endLeft
                            }, 300, function () {
                                btnClick = true;
                            });
                            wrapEl.find('.move-slide').eq(index).animate({
                                width: childWidth,
                                height: childHeight
                            }, 200).addClass('active').siblings().removeClass('active');
                            wrapEl.find('.move-slide').eq(index - 1).animate({
                                width: reducedWidth,
                                height: reducedHeight
                            }, 200);
                        }, 0);
                    } else {
                        let ballNum = nextIndex - (addNum + 1);
                        scrollNavFn(ballNum);
                        bigSmallSlide.animate({
                            scrollLeft: endLeft
                        }, 300, function () {
                            index = nextIndex;
                            btnClick = true;
                        });
                        wrapEl.find('.move-slide').eq(index).animate({
                            width: reducedWidth,
                            height: reducedHeight
                        }, 200);
                        wrapEl.find('.move-slide').eq(nextIndex).animate({
                            width: childWidth,
                            height: childHeight
                        }, 200, function () {}).addClass('active').siblings().removeClass('active');
                        // if (nextIndex >= maxEqNum) {
                        //     wrapEl.find('.move-slide').eq(startNum).addClass('active');
                        // };
                    }
                    // else if (moveSlideEq <= 2) {
                    //     wrapEl.find('.move-slide').eq(moveSlideEq).addClass('active');
                    // };
                }
            };
            // let circle = function () {
            //     let width = wrapEl.find('.move-slide').eq(0).innerWidth();
            //     let length = wrapEl.find('.move-slide').length;
            //     if (index >= endNum) {
            //         bigSmallSlide.scrollLeft(width);
            //         wrapEl.find('.move-slide').eq(startNum).css({
            //             width: childWidth,
            //             height: childHeight
            //         });
            //         setTimeout(function () {
            //             wrapEl.find('.move-slide').eq(index).css({
            //                 width: reducedWidth,
            //                 height: reducedHeight
            //             });
            //             index = startNum;
            //         }, 0);
            //     } else if (index < startNum) {
            //         console.log('左超出了', 'circle');
            //         let eqKey = length - 1 - addNum - (startNum - index);
            //         let eqKeyLeft = length - 1 - addNum - (startNum - index) - addNum;
            //         bigSmallSlide.scrollLeft(width * eqKeyLeft);
            //         // console.log(wrapEl.find('.move-slide').eq(endNum), endNum);
            //         wrapEl.find('.move-slide').eq(eqKey).css({
            //             width: childWidth,
            //             height: childHeight
            //         });
            //         setTimeout(function () {
            //             wrapEl.find('.move-slide').eq(index).css({
            //                 width: reducedWidth,
            //                 height: reducedHeight
            //             });
            //             index = eqKey;
            //         }, 0);
            //     }
            //     btnClick = true;
            // };
            wrapEl.on('click', '.btn-left', btnLeftfn);
            wrapEl.on('click', '.btn-right', btnRightfn);
            let scrollNavFn = function (num) {
                let ballNum = num;
                ballList.eq(ballNum).addClass('active').siblings().removeClass('active');
                if (textList.length > 0) {
                    textList.eq(num).addClass('active').siblings().removeClass('active');
                }
            };
            let ballIndexNav = function (num) {
                let moveSlideEq = num + addNum + 1;
                let leftNum = num + 1;
                let width = wrapEl.find('.move-slide').eq(0).innerWidth();
                bigSmallSlide.animate({
                    scrollLeft: leftNum * width
                });
                wrapEl.find('.move-slide').eq(moveSlideEq).animate({
                    width: childWidth,
                    height: childHeight
                }).addClass('active');
                wrapEl.find('.move-slide').eq(index).animate({
                    width: reducedWidth,
                    height: reducedHeight
                }).removeClass('active');
                index = moveSlideEq;
                if (moveSlideEq >= maxEqNum) {
                    wrapEl.find('.move-slide').eq(startNum).addClass('active');
                } else if (moveSlideEq <= 2) {
                    wrapEl.find('.move-slide').eq(maxEqNum).addClass('active');
                };
            };
            let cardforEnd = function (Cardnum) {
                let disff = null;
                let endLeft = null;
                let width = wrapEl.find('.move-slide').eq(0).innerWidth();
                let length = wrapEl.find('.move-slide').length;
                let smallLength = ballLength;
                let bsLeft = bigSmallSlide.scrollLeft();
                if (Cardnum >= (length - startNum)) {
                    Cardnum = Cardnum - smallLength;
                    disff = index - Cardnum;
                } else if (Cardnum < startNum) {
                    Cardnum = smallLength + Cardnum;
                    disff = index - Cardnum;
                }
                endLeft = bsLeft - disff * width;
                bigSmallSlide.animate({
                    scrollLeft: endLeft
                }, 300, function () {
                    btnClick = true;
                    index = Cardnum;
                });
                wrapEl.find('.move-slide').eq(Cardnum).animate({
                    width: childWidth,
                    height: childHeight
                }, 200).addClass('active').siblings().removeClass('active');
                // console.log(index, 'cdb');
                wrapEl.find('.move-slide').eq(index).animate({
                    width: reducedWidth,
                    height: reducedHeight
                }, 200);
                let ballNum = Cardnum - addNum - 1;
                scrollNavFn(ballNum);
            };
            let cardStartEnd = function (Cardnum) {
                let leftNum = Cardnum - addNum;
                let width = wrapEl.find('.move-slide').eq(0).innerWidth();
                bigSmallSlide.animate({
                    scrollLeft: leftNum * width
                }, 300, function () {
                    btnClick = true;
                    index = Cardnum;
                });
                wrapEl.find('.move-slide').eq(Cardnum).animate({
                    width: childWidth,
                    height: childHeight
                }, 200).addClass('active').siblings().removeClass('active');
                wrapEl.find('.move-slide').eq(index).animate({
                    width: reducedWidth,
                    height: reducedHeight
                }, 200);
                // if (Cardnum >= maxEqNum) {
                //     wrapEl.find('.move-slide').eq(startNum);
                // } else if (Cardnum < startNum) {
                //     wrapEl.find('.move-slide').eq(eqKey);
                // } else {};
            };
            wrapEl.on('click', '.ball', function () {
                let num = $(this).index();
                // console.log(num, index);
                if ((num + addNum + 1) === index) {
                    return false;
                }
                scrollNavFn(num);
                ballIndexNav(num);
            });
            wrapEl.on('click', '.card', function () {
                if (btnClick) {
                    btnClick = false;
                    let Cardnum = $(this).parent().index();
                    if (index === Cardnum) {
                        btnClick = true;
                        // return false;
                    } else {
                        let width = wrapEl.find('.move-slide').eq(0).innerWidth();
                        let length = wrapEl.find('.move-slide').length;
                        let eqKey = length - 1 - addNum - (startNum - index);
                        let eqKeyLeft = length - 1 - addNum - (startNum - index) - addNum;
                        let eqMin = startNum - 1;
                        if (Cardnum >= endNum) {
                            wrapEl.find('.move-slide').eq(eqMin).css({
                                width: childWidth,
                                height: childHeight
                            }).addClass('active');
                            setTimeout(function () {
                                bigSmallSlide.scrollLeft(0);
                                wrapEl.find('.move-slide').eq(index).css({
                                    width: reducedWidth,
                                    height: reducedHeight
                                }).removeClass('active');
                                index = eqMin;
                                cardforEnd(Cardnum);
                            }, 0);
                        } else if (Cardnum < startNum) {
                            // console.log('左超出了', 'circle');
                            // let eqKey = length - 1 - addNum - (startNum - index);
                            // let eqKeyLeft = length - 1 - addNum - (startNum - index) - addNum;
                            // console.log(wrapEl.find('.move-slide').eq(endNum), endNum);
                            // console.log(wrapEl.find('.move-slide').eq(eqKey));
                            wrapEl.find('.move-slide').eq(eqKey).css({
                                width: childWidth,
                                height: childHeight
                            }).addClass('active').siblings().removeClass('active');
                            setTimeout(function () {
                                bigSmallSlide.scrollLeft(width * eqKeyLeft);
                                wrapEl.find('.move-slide').eq(index).css({
                                    width: reducedWidth,
                                    height: reducedHeight
                                }).removeClass('active');
                                index = eqKey;
                                // console.log(index);
                                cardforEnd(Cardnum);
                                // cardStartEnd(Cardnum);
                            }, 0);
                        } else {
                            // index = Cardnum;
                            let ballNum = Cardnum - addNum - 1;
                            scrollNavFn(ballNum);
                            cardStartEnd(Cardnum);
                        }
                    };
                };
            });
        };
        // let MoveSwiper2 = function (option) {
        //     let obj = option;
        //     let wrapEl = $(obj.el);
        //     let index = obj.firstslide;
        //     let ballList = wrapEl.find('.ball');
        //     let textList = wrapEl.find('.text-about');
        //     let childWidth = wrapEl.find('.move-slide').eq(0).width();
        //     let childHeight = wrapEl.find('.move-slide').eq(0).height();
        //     let reducedWidth = wrapEl.find('.move-slide').eq(0).width() * obj.reducedSize;
        //     let reducedHeight = wrapEl.find('.move-slide').eq(0).height() * obj.reducedSize;
        //     let btnClick = true;
        //     wrapEl.find('.move-slide').css({
        //         width: reducedWidth,
        //         height: reducedHeight
        //     });
        //     wrapEl.find('.move-slide').eq(index).css({
        //         width: childWidth,
        //         height: childHeight
        //     }).addClass('current');
        //     let numController = function (num) {
        //         let eqNum = num;
        //         ballList.eq(eqNum).addClass('active').siblings().removeClass('active');
        //         textList.eq(eqNum).addClass('active').siblings().removeClass('active');
        //         wrapEl.find('.move-slide').eq(eqNum).animate({
        //             width: childWidth,
        //             height: childHeight
        //         }, function () {
        //             index = eqNum;
        //             btnClick = true;
        //             console.log(index);
        //         });
        //         wrapEl.find('.move-slide').eq(index).animate({
        //             width: reducedWidth,
        //             height: reducedHeight
        //         });
        //     };
        //     wrapEl.on('click', '.ball', function () {
        //         console.log(btnClick);
        //         if (btnClick) {
        //             btnClick = false;
        //             let num = $(this).index();
        //             console.log(num);
        //             numController(num);
        //         }
        //     });
        //     wrapEl.on('click', '.move-slide', function () {
        //         console.log(btnClick);
        //         if (btnClick) {
        //             btnClick = false;
        //             let num = $(this).index();
        //             console.log(num);
        //             numController(num);
        //         }
        //     });
        // };
        // new一个第三屏卡片轮播
        _private.MatchSwiper = new MoveSwiper({
            'el': '.move-slide-match',
            'firstslide': 5,
            'reducedSize': 0.6
            // 'addNum': 2
        });
        _private.yearSwiper = new MoveSwiper({
            'el': '.move-slide-year',
            'firstslide': 5,
            'reducedSize': 0.7
        });
        _private.znhlSwiper = new MoveSwiper({
            'el': '.move-slide-znhl',
            'firstslide': 0,
            'reducedSize': 0.6
        });
        _private.yxkfSwiper = new MoveSwiper({
            'el': '.move-slide-yxkf',
            'firstslide': 0,
            'reducedSize': 0.6
        });
        _private.tmcySwiper = new MoveSwiper({
            'el': '.move-slide-tmcy',
            'firstslide': 0,
            'reducedSize': 0.6
        });
        _private.qnbjSwiper = new MoveSwiper({
            'el': '.move-slide-qnbj',
            'firstslide': 0,
            'reducedSize': 0.6
        });
        _private.cysjSwiper = new MoveSwiper({
            'el': '.move-slide-cysj',
            'firstslide': 0,
            'reducedSize': 0.6
        });
        // console.log(MoveSwiper);
        // _private.bigSmallSlide.scrollLeft(1500);
        // _private.slide2DBtnL.on('click', function () {
        //     console.log(1111111111111);
        // });
        // 外部js分离初始化
        TabFn();
        _private.Main03CardFn = new Main03CardFn();
        setTimeout(function () {
            if (!$('.m-loading').hasClass('hide')) {
                $('.m-float-about').removeClass('show');
                $('.m-loading').hide().addClass('hide');
            }
        }, 100);
    };
    // 显示
    _that.show = function () {};

    // 隐藏
    _that.hide = function () {
        _that.onhide && _that.onhide();
        _private.pageEl.hide();
    };

    _private.init();
};

module.exports = IndexViewController;
